home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 3: The Continuation
/
17-Bit_The_Continuation_Disc.iso
/
files
/
nz18.dms
/
nz18.adf
/
BASIC to Hardware
/
PrinterStatus
< prev
next >
Wrap
Text File
|
1993-12-03
|
629b
|
27 lines
'Printer status
'From J.Murphy
'Enhanced by AJW, NB for this static test, POUT signal is only updated when
'the printer is switched off and on.
PRINT "Printer status check"
PRINT "Switch printer off and on..."
a&=&HBFD*&H1000:REM Address of CIAB
start:
LOCATE 20,20
p=PEEK(a&) AND 7
PRINT "Printer ";
IF p=7 THEN
PRINT "Not Connected "
ELSE
IF p=0 THEN
PRINT "Switched Off "
ELSE
IF (p AND 4) THEN PRINT "Online "; ELSE PRINT "Offline";
IF (p AND 2) THEN PRINT " PaperOut"; ELSE PRINT " PaperIn ";
IF (p AND 1) THEN PRINT " Busy " ELSE PRINT " NotBusy"
END IF
END IF
GOTO start